package com.github.ecbp.user.service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.github.ecbp.common.resp.BaseFullVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel
public class AdminVo extends BaseFullVO {

    @ApiModelProperty(value = "登录手机号")
    private String loginPhone;

    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像")
    private String icon;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "性别")
    private Integer sex;

    /**
     * 最后登录时间
     */
    @ApiModelProperty(value = "最后登录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date loginTime;

    /**
     * 帐号启用状态：0->禁用；1->启用
     */
    @ApiModelProperty("启用状态 0->禁用；1->启用")
    private Integer status;
}
